-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support keyboard-interactive authentication #3
Conversation
* Use PAM-enabled version of OpenSSH. * Install shadow package to allow us to use the chage command to force password expiry.
* Update Restart() to stop and start the PAM-enabled version of OpenSSH. * Add method to configure KbdInteractiveAuthentication option.
* Reset password of sshnet user back to the default password. * Use change to remove password expiration for the sshnet user. Update keyboard-interactive tests to also enable KbdInteractiveAuthentication option.
The
The password is correctly reset and other tests can continue. |
Hmm, it consistently passes here.
|
I've just observed that it only fails the first time after I run the container. If I repeat the test without restarting the container, it passes. |
Running |
@IgorMilavec The default config indeed differs. Ideally, we'd generate the default config using the same mechanism. |
…a vanilla container.
@IgorMilavec, this should do it. |
Great, |
@IgorMilavec Please re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great solution with the prune batch, now it's under user's control.
Fix support for keyboard-interactive authentication by:
In
TearDown()
of AuthenticationTests, correctly reset state of docker container by changing the password of the sshnet user back to the default value and removing its password expiration.Fixes #2.
Note:
You'll need to update SshNet.TestTools.OpenSSH.